package com.itheima.service;

import com.itheima.pojo.Book;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;
//@Transactional//事物管理
public interface BookService {
//增加
    public boolean save(Book book);
//修改

    public boolean update(Book book);
//删除

    public boolean delete(Integer id);
//按id查询
    public Book getById(Integer id);
//查找所有

    public List<Book> getAll();
}
